package service;

import java.util.List;

import dao.FunctionDAO;
import vo.Administrator;
import vo.Books;

public class Servicet {
	FunctionDAO f = new FunctionDAO();
	public Administrator login(String username, String pwd) {
		Administrator a = f.login(username, pwd);
		return a;
	}
	public List<Books> all() {
		List<Books> list = f.all();
		return list;
	}
	public void add(String date, String name, String sm) {
		f.add(date, name, sm);
	}
	public void delete(String name, String sm) {
		f.delete(name, sm);
	}
	public List<Books> fun(String name) {
		List<Books> b = f.fun(name);
		return b;
	}
}
